package mx.netbrain.dao;

import java.util.List;

import mx.netbrain.model.Tree;
import mx.netbrain.model.User;

public interface TreeDao {

	public Tree findById(Long id);

	public void save(Tree tree);

	public void update(Tree tree);

	public List<Tree> listAllUser(User user);

	public List<Tree> listNodeId(Long id, User user);

	public List<Tree> listNodeFolder(Long id, User user);

	public Tree findByRepository(Long repo);

	public boolean findTreeName(String name, Long repo);

}
